#include<bits/stdc++.h>
using namespace std;
int main()
{
	double x;
	cin>>x;
	printf("%.1f\n%.1f",(int)(10*x+0.5)/10.0,(int)(x*10)/10.0);
    return 0;
}
